package com.nineclock.auth.intergration.processor;

import com.nineclock.auth.intergration.entity.IntergrationAuthenticationEntity;
import com.nineclock.system.dto.SysUserDTO;

/**
 * 认证处理器接口
 */
public interface AuthenticationProcessor {

    /**
     * 判断是否应该由该认证处理器进行处理
     * @return
     */
    public Boolean support(IntergrationAuthenticationEntity entity);


    /**
     * 认证方法
     * @param entity
     * @return
     */
    public SysUserDTO authenticate(IntergrationAuthenticationEntity entity);

}
